# -*- coding: utf-8 -*-
"""
#-------------------------------------------------------------------------------
# Nom:         setup
#
# Auteur:      Alain Gauthier
#
# Créé le:     30/05/2013
# Copyright:   (c) eaucéa 2014
# Licence:     GNU Public Licence (GPL)

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

Pour compiler le code de calcul des bassins versant.
lancer la commande 'python setup.py build_ext --inplace'

Remarque : cette compilation nécessite l'installation de Visual Studio 2010 (la version gratuite suffit)
--------

#-------------------------------------------------------------------------------
"""

import os
import numpy
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

# pour Visual Studio 2010
chemin_compil = os.getenv('VS100COMNTOOLS')
os.environ['VS90COMNTOOLS']=chemin_compil

setup(
      cmdclass = {'build_ext': build_ext},
      ext_modules = [Extension("requete", ["requete_bv_amont.pyx"],
                               include_dirs = [numpy.lib.get_include()])]
     )